import 'package:get/get.dart';

enum TabType {
  recording,
  creation,
}

class Memoir {
  final String id;
  final String title;
  final String coverImage;
  final bool isPrivate;

  Memoir({
    required this.id,
    required this.title,
    required this.coverImage,
    this.isPrivate = false,
  });
}

class Story {
  final String id;
  final String title;
  final String coverImage;
  final String author;
  final String date;
  final int comments;
  final int likes;
  final bool isPrivate;

  Story({
    required this.id,
    required this.title,
    required this.coverImage,
    required this.author,
    required this.date,
    this.comments = 0,
    this.likes = 0,
    this.isPrivate = false,
  });
}

class CreateListState {
  // 当前选中的标签
  final Rx<TabType> currentTab = TabType.creation.obs;
  
  // 回忆录列表
  final RxList<Memoir> memoirs = <Memoir>[
    Memoir(
      id: '1',
      title: '创作好的书名的标题XXXXX',
      coverImage: '',
      isPrivate: true,
    ),
    Memoir(
      id: '2',
      title: '创作好的书名的标题XXXXX',
      coverImage: '',
      isPrivate: false,
    ),
    Memoir(
      id: '3',
      title: '创作好的书名的标题XXXXX',
      coverImage: '',
      isPrivate: true,
    ),
  ].obs;
  
  // 故事列表
  final RxList<Story> stories = <Story>[
    Story(
      id: '1',
      title: '创作好的故事的标题',
      coverImage: '',
      author: '用户名',
      date: 'xx年xx月xx日',
      comments: 10,
      likes: 20,
      isPrivate: false,
    ),
    Story(
      id: '2',
      title: '创作好的故事的标题xxxxxxxxxxxxxxxxxx',
      coverImage: '',
      author: '用户名',
      date: 'xx年xx月xx日',
      comments: 5,
      likes: 15,
      isPrivate: true,
    ),
  ].obs;
} 